package org.grow.safety.config;

import com.querydsl.jpa.impl.JPAQueryFactory;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


import javax.persistence.EntityManager;
/**
 * @Author: xwg
 * @CreateDate: 21-7-15
 */

@Configuration
public class CommonConfig {


    @Bean
    public JPAQueryFactory jpaQueryFactory(EntityManager entityManager){

        return new JPAQueryFactory(entityManager);
    }




}
